<?php

namespace App\Models\GameDB\WholeGame;

use Illuminate\Database\Eloquent\Model;

class CheckRepair extends Model
{
    public $connection = 'mysql_game';

    protected $table = 'whole_game_check_repair';

    public function gift()
    {
        return $this->hasOne(\App\Models\MainDB\Gift::class, 'id', 'gift_id');
    }

    public function user()
    {
        return $this->hasOne(\App\Models\MainDB\User::class, 'user_id', 'user_id');
    }

    public function check()
    {
        return $this->hasOne(Check::class, 'id', 'check_id');
    }

}
